@import "./aging.less";

.aging {
  background: @background-color-f2;
  height: 100%;
}
.aging_time {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 24/@b-width 30/@b-width;
  color: #333;
  font-size: @fc_c;
  background: @white;
  border-bottom: 1/@b-width solid @border-color-e5;
  font-weight: bold;
  &:before {
    content: '';
    width: 5/@b-width;
    height: 24/@b-width;
    background: #2B99F1;
    border-radius: 2/@b-width;
    margin-right: 10/@b-width;
  }
  &:after {
    // content: '';
    // width:0/@b-width;
    // height:0/@b-width;
    // border-top: 9/@b-width solid #bbb;
    // border-right: 10/@b-width solid  transparent;
    // border-bottom: 9/@b-width solid transparent;
    // border-left: 10/@b-width solid  transparent;
    // transform: translateY(25%);
    margin-left: 16/@b-width;
    content: ' ';
    width: 16/@b-width;
    height: 16/@b-width;
    border: solid #333;
    border-width: 1px 1px 0 0;
    -webkit-transform: translate(0,-25%) rotate(135deg);
    transform: translate(0,-25%) rotate(135deg);
  }
  &.active {
    &:after {
      transform: rotate(180deg) translateY(25%);
    }
  }
}
.aging_tab {
  padding: 25/@b-width 0;
  display: flex;
  background: @white;
  .tab {
    margin: 0 130/@b-width;
    white-space: nowrap;
    text-align: center;
    color: #333;
    font-size: @fc_c;
    position: relative;
    &.active {
      color: #2B99F1;
      &:before {
        content: '';
        background: #2B99F1;
        width: 100%;
        height: 4/@b-width;
        position: absolute;
        left: 0;
        bottom: -10/@b-width;
      }
    }
  }
  .tab:nth-of-type(1):after {
    content: '';
    width: 1/@b-width;
    height: 40/@b-width;
    background: @border-color-e5;
    position: absolute;
    right: -130/@b-width;
    top: 0;
  }
}
.aging_num {
  line-height: 46/@b-width;
  color: #333;
  font-size: @fc_d;
  padding-left: 24/@b-width;
}
.aging_data {
  display: flex;
  flex-wrap: wrap;
  background: @white;
  margin-bottom: 14/@b-width;
  &.aging_data:last-of-type {
    margin-bottom: 0;
  }
  .data {
    position: relative;
  }
  .info_icon {
      position: absolute;
      right: 0;
      top: 50/@b-width;
      width: 16/@b-width;
      height: 60/@b-width;
      .arrow-left {
        width: 0px;
        height: 0px;
        margin-top: 20/@b-width;
        border-bottom: 20/@b-width solid transparent;
        border-top: 20/@b-width solid transparent;
        border-right: 16/@b-width solid #EEF6FF;
      }
      .icon {
        position: absolute;
        left: 4/@b-width;
        top: 8/@b-width;
        width: 0px;
        height: 0px;
        border-top: 8/@b-width solid transparent;
        border-bottom: 8/@b-width solid transparent;
        border-left: 10/@b-width solid #2B99F1;
      }
    }
}
.data {
  padding: 27/@b-width 0;
  width: 33.3%;
  text-align: center;
  font-size: @fc_b;
  color: #333;
  .line-bottom(@border-color-e5);
  &:before {
    content: '';
    width: 1px;
    height: 100%;
    background: @border-color-e5;
    transform: scaleX(0.5);
    position: absolute;
    right: 0;
    top: 0;
  }
  .title {
    margin-bottom: 10/@b-width;
    font-size: @fc_d;
    color: @font-color-9;
  }
}
.data:nth-child(3n) {
  &:before {
    height: 0;
  }
}
//容错页
.nofind {
  background: @white;
  height: -webkit-fill-available;
  padding-top: 240/@b-width;
  text-align: center;
  color: @font-color-9;
  font-size: @fc_c;
}
.nofind_pic {
  width: 375/@b-width;
  height: 285/@b-width;
  margin:  0 auto 70/@b-width;
  img {
    width: 100%;
    // height: 100%;
  }
}
.aging_chart {
  position: relative;
  justify-content: left;
  .legend_chart {
    padding: 0 20/@b-width;
    background: #fff;
    margin-top: -2/@b-width;
    display: flex;
    flex-wrap: wrap;
    span.legend {
      height: 60/@b-width;
      padding: 0 20/@b-width;
      margin-right: 20/@b-width;
      margin-bottom: 20/@b-width;
      line-height: 60/@b-width;
      font-size: 24/@b-width;
      color: #999;
      background: #f2f2f2;
      border: 1px solid #f2f2f2;
      border-radius: 30/@b-width;
      display: flex;
      align-items: center;
      b {
        content: '';
        width: 16/@b-width;
        height: 16/@b-width;
        background: #f2f2f2;
        border-radius: 8/@b-width;
        margin-right: 8/@b-width;
      }
    }
    .active {
      color: #333;
      border-color: #2B99F1;
      background: #fff;
    }
  }
}
.charts {
  width: 100%;
  margin-bottom: 14/@b-width;
  justify-content: left;
  position: relative;
  .legend_chart {
    padding: 20/@b-width 20/@b-width 0;
    background: #fff;
    margin-top: -2/@b-width;
    display: flex;
    flex-wrap: wrap;
    .legend {
      height: 60/@b-width;
      padding: 0 20/@b-width;
      margin-right: 20/@b-width;
      margin-bottom: 20/@b-width;
      line-height: 60/@b-width;
      font-size: 24/@b-width;
      color: #999;
      background: #f2f2f2;
      border: 1px solid #f2f2f2;
      border-radius: 30/@b-width;
      display: flex;
      align-items: center;
      b {
        content: '';
        width: 16/@b-width;
        height: 16/@b-width;
        background: #f2f2f2;
        border-radius: 8/@b-width;
        margin-right: 8/@b-width;
      }
    }
    .active {
      color: #333;
      border-color: #2B99F1;
      background: #fff;
    }
  }
}
.pres_table,.pres_single_table, .aging_chart {
  margin-bottom: 14/@b-width;
  background: @white;
}
.pres_table ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  &:nth-child(1) {
    li {
      border-top: none!important;
    }
  }
  li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 27/@b-width 0;
    width: 33.3%;
    font-size: @fc_d;
    flex-wrap: wrap;
    color: @Light_grey;
    border-right: 1px solid @border-color-e5;
    border-top: 1px solid @border-color-e5;
    &:nth-child(3n) {
      border-right: none;
    }
    .pres_info {
      height: 32/@b-width;
      line-height: 32/@b-width;
      margin-top: 11/@b-width;
      font-size: @fc_b;
      color: @black;
      .company {
        display: inline-block;
        height: 24/@b-width;
        line-height: 24/@b-width;
        font-size: @fc_d;
      }
    }
    .pres_info,.pres_name {
      width: 100%;
      .ellipsis(1);
    }

    .info_icon {
      position: absolute;
      right: 0;
      top: 50/@b-width;
      width: 16/@b-width;
      height: 60/@b-width;
      .arrow-left {
        width: 0px;
        height: 0px;
        margin-top: 20/@b-width;
        border-bottom: 20/@b-width solid transparent;
        border-top: 20/@b-width solid transparent;
        border-right: 16/@b-width solid #EEF6FF;
      }
      .icon {
        position: absolute;
        left: 4/@b-width;
        top: 8/@b-width;
        width: 0px;
        height: 0px;
        border-top: 8/@b-width solid transparent;
        border-bottom: 8/@b-width solid transparent;
        border-left: 10/@b-width solid #2B99F1;
      }
    }
  }
}
.pres_single_table {
  font-size: @fc_d;
  ul {
    display: flex;
    flex-wrap: wrap;
    padding:28/@b-width 52/@b-width;
    padding-left: 32/@b-width;
    margin-bottom: 14/@b-width;
    &:nth-child(1) {
      li {
        .dotted_top_line {
          border-left: none!important;
        }
      }
    }
    li {
      width: 30%;
      padding-left: 7%;
      .single_name {
        position: relative;
        width: 160/@b-width;
        height: 34/@b-width;
        line-height: 34/@b-width;
        text-align: center;
        color: #BBBBBB;
        border: 1px solid #BBBBBB;
        border-radius: 100/@b-width;
        .dotted_line {
          position: absolute;
          left: -60/@b-width;
          top: 15/@b-width;
          display: inline-block;
          width: 60/@b-width;
          height: 1px;
          border-bottom: 1px dashed #BBBBBB;
        }
        .dotted_top_line {
          position: absolute;
          left: 108/@b-width;
          top: -60/@b-width;
          display: inline-block;
          width: 1px;
          height: 60/@b-width;
          border-left: none;
        }
      }
      .single_info {
        position: relative;
        width: 160/@b-width;
        height: 34/@b-width;
        line-height: 34/@b-width;
        text-align: center;
        font-size: @fc_b;
        margin-top: 10/@b-width;
        .icon_info {
          position: absolute;
          right:0;
          display: inline-block;
          width: 28/@b-width;
          height: 28/@b-width;
          line-height: 28/@b-width;
          background: #EEF6FF;
          border-radius: 50%;
          .arrow-right {
            display: inline-block;
            width: 0px;
            height: 0px;
            margin-bottom: 3/@b-width;
            margin-left: 3/@b-width;
            border-top: 8/@b-width solid transparent;
            border-bottom: 8/@b-width solid transparent;
            border-left: 10/@b-width solid #2B99F1;
          }
        }
      }
      &:nth-child(1) {
        width: 40%;
        padding-left: 0;
        .single_name {
          width: 250/@b-width;
          .dotted_line {
            // left: -84/@b-width;
            // width: 84/@b-width;
          }
        }
        .single_info {
          width: 250/@b-width;
        }
        .dotted_line {
          display: none;
        }
      }
      &:nth-child(1) {
        .dotted_top_line {
          border-left: 1px dashed #BBBBBB;
        }
      }
      &:nth-child(3) {
        width: 30%;
        padding-left: 10%;
      }
    }
  }
}
